import axios from "axios";
export let getList = ()=>{
    return (dispatch)=>{
        axios.get("/list").then(res=>{
            dispatch({
                type:"getList",
                payload:res.data
            })
        })
    }
}
export let addShop = (item)=>{
    return {
        type:"addShop",
        payload:item

    }
}
export let Add = (id) => {
    return {
        type:"Add",
        payload:id
    }
}
export let Del = (id) => {
    return {
        type:"Del",
        payload:id
    }
}
export let checkitem = (id) => {
    return {
        type:"checkitem",
        payload:id
    }
}
export let checkall = () => {
    return {
        type:"checkall",
    }
}